﻿// =================================================================== 
// Module说明
//====================================================================
// 创建时间：2018-12-13 12:49:24
// 负责人：lvsc
// ===================================================================
using System;
using System.Data;
using System.Collections.Generic;
using System.Linq.Expressions;
using OF.Utility;
using OF.Component.Model;
using OF.Component.IDAL;
using OF.Component.Factory;
namespace OF.Component.BLL
{

    /// <summary>
    ///快递费用模板 扩展
    /// </summary>
    public partial class ExpressFeeTplOperate
    {
        /// <summary>
    	/// 根据断言条件获取单个快递费用模板
    	/// </summary>
        public static ExpressFeeTplInfo QuerySingle(Expression<Func<ExpressFeeTplInfo, bool>> predicate)
        {
            return dal.QuerySingle(predicate);
        }

        /// <summary>
        /// 根据断言条件获获取快递费用模板列表
        /// </summary>
        public static IList<ExpressFeeTplInfo> QueryList(Expression<Func<ExpressFeeTplInfo, bool>> predicate)
        {
            return dal.QueryList(predicate);
        }

        /// <summary>
        /// 获取快递费用
        /// </summary>
        /// <param name="cityId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        public static DataTable GetExpressFee(int cityId, int bizTypeId)
        {
            return dal.GetExpressFee(cityId, bizTypeId);
        }

        /// <summary>
        /// 根据城市和公司获取快递费用
        /// </summary>
        /// <param name="companyID"></param>
        /// <param name="cityId"></param>
        /// <param name="bizTypeId"></param>
        /// <returns></returns>
        public static ExpressFeeTplInfo GetByCompany(int companyID, int cityId, int bizTypeId)
        {
            return dal.GetByCompany(companyID, cityId, bizTypeId);
        }

      
    }
}